package com.example.newbilityblog.blog.service;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class ConfigService {

    public static final String websiteName = "personal blog";
    public static final String websiteDescription = "personal blog是SpringBoot2+Thymeleaf+Mybatis建造的个人博客网站.SpringBoot实战博客源码.个人博客搭建";
    public static final String websiteLogo = "/admin/dist/img/logo2.png";
    public static final String websiteIcon = "/admin/dist/img/favicon.png";
    public static final String yourAvatar = "/admin/dist/img/13.png";
    public static final String yourEmail = "757306533@qq.com";
    public static final String yourName = "杰哥";
    public static final String footerAbout = "your personal blog. have fun.";
    public static final String footerICP = "浙ICP备 xxxxxx-x号";
    public static final String footerCopyRight = "@2018 十三";
    public static final String footerPoweredBy = "personal blog";
    public static final String footerPoweredByURL = "##";

    public Map<String, String> getAllConfigs() {
        var configMaps = new HashMap<String, String>();
        configMaps.put("websiteName", websiteName);
        configMaps.put("websiteDescription", websiteDescription);
        configMaps.put("websiteLogo", websiteLogo);
        configMaps.put("websiteIcon", websiteIcon);
        configMaps.put("yourAvatar", yourAvatar);
        configMaps.put("yourEmail", yourEmail);
        configMaps.put("yourName", yourName);
        configMaps.put("footerAbout", footerAbout);
        configMaps.put("footerICP", footerICP);
        configMaps.put("footerCopyRight", footerCopyRight);
        configMaps.put("footerPoweredBy", footerPoweredBy);
        configMaps.put("footerPoweredByURL", footerPoweredByURL);

        return configMaps;
    }
}
